#define _CRT_SECURE_NO_WARNINGS 1
int is_leap_year(int y)
{
	if ((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0))
		return 1;
	else
		return 0;
}
int get_day_of_month(int y, int m)
{
	int days[] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
	//0  1 2  3  4   5  6  7  8  9 10  11 12
	int day = days[m];
	if (is_leap_year(y) == 1 && m == 2)
	{
		day++;
	}
	return day;

}
